<?php
// ==============================================================================================
// Licensed under the GNU GPLv3 (LICENSE.txt)
// ==============================================================================================
// @author     WEBO Software (http://www.webogroup.com/)
// @version    0.1.0
// @copyright  Copyright &copy; 2011 WEBO Software, All Rights Reserved
// ==============================================================================================
// no direct access
defined('_JEXEC') or die('Restricted access');

function com_uninstall() {

    $database = & JFactory::getDBO();
    echo "Unpublishing WEBO Video Transmuter system plugins: ";
    $database->setQuery("DELETE FROM `#__plugins` WHERE `element`= 'videotransmuter';");
    $database->query();
    echo "Done.<br />";
    
    echo "Removing WEBO Video Transmuter system plugins: ";
    @unlink(JPATH_SITE."/plugins/system/videotransmuter.php");
    @unlink(JPATH_SITE."/plugins/system/videotransmuter.xml");
    echo "Done.<br />";
    echo "<b>WEBO Video Transmuter was successfully uninstalled.</b><br />";
}

?>
